﻿#ifndef POSTCOMMAND_CMDPOLARCOORDINATEGRAPHSIDEBARCOMPLEXPARTSCHANGED_H
#define POSTCOMMAND_CMDPOLARCOORDINATEGRAPHSIDEBARCOMPLEXPARTSCHANGED_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdPolarCoordinateGraphSidebarComplexPartsChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdPolarCoordinateGraphSidebarComplexPartsChanged();
        ~CmdPolarCoordinateGraphSidebarComplexPartsChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setPolarCoordinateGraphSidebarComplexPartsChanged(int windowId, bool isAmplitudeChecked, bool isPhaseChecked, bool isRealPartChecked, bool isImaginaryPartChecked);

    private:
        int m_windowId;
        bool m_isAmplitudeChecked;
        bool m_isPhaseChecked;
        bool m_isRealPartChecked;
        bool m_isImaginaryPartChecked;
    };
} // namespace PostCommand

#endif
